package com.moody.hibernate.domain;

import java.text.DecimalFormat;

/**
 * CustInfo entity. @author MyEclipse Persistence Tools
 */

@SuppressWarnings("serial")
public class CustInfo implements java.io.Serializable, Cloneable {

	// Fields

	private String custId;
	private String custNo;
	private String organizationId;
	private String custName;
	private String englishName;
	private String simpleName;
	private String simpleEnName;
	private String busiLicenseId;
	private String belongType;
	private String orgType;
	private String establishDate;
	private String closeDate;
	private Double registercapital;
	private String capitalCurrency;
	private Double receiveRate;
	private String revenueSource;
	private String custType;
	private String custStatus;
	private String custScope;
	private String industryType;
	private String busiScope;
	private String sidelineScope;
	private Double last3avgincome;
	private Double lastIncome;
	private Double last2income;
	private Double assetSum;
	private Double debtSum;
	private String otherDesc;
	private String extRatResult;
	private String extRatOrg;
	private String extRatDate;
	private String industryRiskLevel;
	private String regionRiskLevel;
	private String financRiskLevel;
	private String creditLevel;
	private String firstCreditLevel;
	private String defaultStat;
	private String exposureType;
	private String inputUserId;
	private String inputOrgId;
	private String inputDate;
	private String updateUserId;
	private String updateOrgId;
	private String updateDate;
	
	private String debtCardNo;
	private String debtCardPwd;
	private String registerDate;
	private String relationshipDate;
	private String twoHighFlag;
	private String limitedFlag;
	private String confirmedSmallFlag;
	private String nationalTaxNo;
	private String localTaxNo;
	
	private String licenceBusiScope;
	private String operationYears;
	private Double mainBusiIncome;
	
	private Integer peopleNum;
	private Double ownersEquity;
	
	private Double debtPercent;
	private String inOutFlag;
	private String groupFlag;
	
	private String industryTypeLevelOne;
	private String industryTypeLevelTwo;
	private String confirmPdlevel;
	private String confirmDate;
	
	private Double balance;
	
	private String bdcreditLevel;
	private String bdcreditDate;
	
	private String countryCode;
	private String provinceCode;
	private String cityCode;
	private String relatedTransaction;
	
	private String inputUserName;
	private String inputOrgName;
	
	private String publicFlag;
	
	
	
	private String registercapitalString;
	private String assetSumString;
	private String debtSumString;
	private String mainBusiIncomeString;
	private String ownersEquityString;
	
	private String phaseStat;
	

	//企业法人
	public static final String CUSTYPE_ENTER = "01";
	//事业单位
	public static final String CUSTYPE_PUBLIC = "02";
	//金融同业
	public static final String CUSTYPE_FINAN = "03";
	//零售客户 
	public static final String CUSTYPE_RETAIL = "04";

	// Constructors

	/** default constructor */
	public CustInfo() {
	}

	/** minimal constructor */
	public CustInfo(String custId) {
		this.custId = custId;
	}

	/** full constructor */
	public CustInfo(String custId, String organizationId, String custName,
			String englishName, String simpleName, String simpleEnName,
			String busiLicenseId, String belongType, String orgType,
			String establishDate, String closeDate, Double registercapital,
			String capitalCurrency, Double receiveRate, String revenueSource,
			String custType, String custStatus, String custScope,
			String industryType, String busiScope, Double last3avgincome,
			Double lastIncome, Double last2income, Double assetSum,
			Double debtSum, String otherDesc, String extRatResult,
			String extRatOrg, String extRatDate, String industryRiskLevel,
			String regionRiskLevel, String financRiskLevel, String creditLevel,
			String firstCreditLevel, String defaultStat, String exposureType, 
			String inputUserId, String inputOrgId, String inputDate, String updateUserId, 
			String updateOrgId, String updateDate) {
		this.custId = custId;
		this.organizationId = organizationId;
		this.custName = custName;
		this.englishName = englishName;
		this.simpleName = simpleName;
		this.simpleEnName = simpleEnName;
		this.busiLicenseId = busiLicenseId;
		this.belongType = belongType;
		this.orgType = orgType;
		this.establishDate = establishDate;
		this.closeDate = closeDate;
		this.registercapital = registercapital;
		this.capitalCurrency = capitalCurrency;
		this.receiveRate = receiveRate;
		this.revenueSource = revenueSource;
		this.custType = custType;
		this.custStatus = custStatus;
		this.custScope = custScope;
		this.industryType = industryType;
		this.busiScope = busiScope;
		this.last3avgincome = last3avgincome;
		this.lastIncome = lastIncome;
		this.last2income = last2income;
		this.assetSum = assetSum;
		this.debtSum = debtSum;
		this.otherDesc = otherDesc;
		this.extRatResult = extRatResult;
		this.extRatOrg = extRatOrg;
		this.extRatDate = extRatDate;
		this.industryRiskLevel = industryRiskLevel;
		this.regionRiskLevel = regionRiskLevel;
		this.financRiskLevel = financRiskLevel;
		this.creditLevel = creditLevel;
		this.firstCreditLevel = firstCreditLevel;
		this.defaultStat = defaultStat;
		this.exposureType = exposureType;
		this.inputUserId = inputUserId;
		this.inputOrgId = inputOrgId;
		this.inputDate = inputDate;
		this.updateUserId = updateUserId;
		this.updateOrgId = updateOrgId;
		this.updateDate = updateDate;
	}
	
	public CustInfo clone(){
		CustInfo custInfoNew = null;
		try{
			custInfoNew = (CustInfo) super.clone();
		}
		catch(CloneNotSupportedException e){
			e.printStackTrace(); 
		}
		return custInfoNew;
	}

	// Property accessors

	public String getCustId() {
		return this.custId;
	}

	public void setCustId(String custId) {
		this.custId = custId;
	}

	public String getOrganizationId() {
		return this.organizationId;
	}

	public void setOrganizationId(String organizationId) {
		this.organizationId = organizationId;
	}

	public String getCustName() {
		return this.custName;
	}

	public void setCustName(String custName) {
		this.custName = custName;
	}

	public String getEnglishName() {
		return this.englishName;
	}

	public void setEnglishName(String englishName) {
		this.englishName = englishName;
	}

	public String getSimpleName() {
		return this.simpleName;
	}

	public void setSimpleName(String simpleName) {
		this.simpleName = simpleName;
	}

	public String getSimpleEnName() {
		return this.simpleEnName;
	}

	public void setSimpleEnName(String simpleEnName) {
		this.simpleEnName = simpleEnName;
	}

	public String getBusiLicenseId() {
		return this.busiLicenseId;
	}

	public void setBusiLicenseId(String busiLicenseId) {
		this.busiLicenseId = busiLicenseId;
	}

	public String getBelongType() {
		return this.belongType;
	}

	public void setBelongType(String belongType) {
		this.belongType = belongType;
	}

	public String getOrgType() {
		return this.orgType;
	}

	public void setOrgType(String orgType) {
		this.orgType = orgType;
	}

	public String getEstablishDate() {
		return this.establishDate;
	}

	public void setEstablishDate(String establishDate) {
		this.establishDate = establishDate;
	}

	public String getCloseDate() {
		return this.closeDate;
	}

	public void setCloseDate(String closeDate) {
		this.closeDate = closeDate;
	}

	public Double getRegistercapital() {
		return this.registercapital;
	}

	public void setRegistercapital(Double registercapital) {
		this.registercapital = registercapital;
		
		DecimalFormat df = new DecimalFormat("###,##0.00");
		String itemValueString = null ;
		if(registercapital!=null){
			itemValueString = String.valueOf(df.format(registercapital));
		}
		this.registercapitalString =itemValueString;
	}

	public String getCapitalCurrency() {
		return this.capitalCurrency;
	}

	public void setCapitalCurrency(String capitalCurrency) {
		this.capitalCurrency = capitalCurrency;
	}

	public Double getReceiveRate() {
		return this.receiveRate;
	}

	public void setReceiveRate(Double receiveRate) {
		this.receiveRate = receiveRate;
	}

	public String getRevenueSource() {
		return this.revenueSource;
	}

	public void setRevenueSource(String revenueSource) {
		this.revenueSource = revenueSource;
	}

	public String getCustType() {
		return this.custType;
	}

	public void setCustType(String custType) {
		this.custType = custType;
	}

	public String getCustStatus() {
		return this.custStatus;
	}

	public void setCustStatus(String custStatus) {
		this.custStatus = custStatus;
	}

	public String getCustScope() {
		return this.custScope;
	}

	public void setCustScope(String custScope) {
		this.custScope = custScope;
	}

	public String getIndustryType() {
		return this.industryType;
	}

	public void setIndustryType(String industryType) {
		this.industryType = industryType;
	}

	public String getBusiScope() {
		return this.busiScope;
	}

	public void setBusiScope(String busiScope) {
		this.busiScope = busiScope;
	}

	public void setSidelineScope(String sidelineScope) {
		this.sidelineScope = sidelineScope;
	}

	public String getSidelineScope() {
		return sidelineScope;
	}

	public Double getLast3avgincome() {
		return this.last3avgincome;
	}

	public void setLast3avgincome(Double last3avgincome) {
		this.last3avgincome = last3avgincome;
	}

	public Double getLastIncome() {
		return this.lastIncome;
	}

	public void setLastIncome(Double lastIncome) {
		this.lastIncome = lastIncome;
	}

	public Double getLast2income() {
		return this.last2income;
	}

	public void setLast2income(Double last2income) {
		this.last2income = last2income;
	}

	public Double getAssetSum() {
		return this.assetSum;
	}

	public void setAssetSum(Double assetSum) {
		this.assetSum = assetSum;
		
		DecimalFormat df = new DecimalFormat("###,##0.00");
		String itemValueString = null ;
		if(assetSum!=null){
			itemValueString = String.valueOf(df.format(assetSum));
		}
		this.assetSumString =itemValueString;
	}

	public Double getDebtSum() {
		return this.debtSum;
	}

	public void setDebtSum(Double debtSum) {
		this.debtSum = debtSum;
		
		DecimalFormat df = new DecimalFormat("###,##0.00");
		String itemValueString = null ;
		if(debtSum!=null){
			itemValueString = String.valueOf(df.format(debtSum));
		}
		this.debtSumString =itemValueString;
	}

	public String getOtherDesc() {
		return this.otherDesc;
	}

	public void setOtherDesc(String otherDesc) {
		this.otherDesc = otherDesc;
	}

	public String getExtRatResult() {
		return this.extRatResult;
	}

	public void setExtRatResult(String extRatResult) {
		this.extRatResult = extRatResult;
	}

	public String getExtRatOrg() {
		return this.extRatOrg;
	}

	public void setExtRatOrg(String extRatOrg) {
		this.extRatOrg = extRatOrg;
	}

	public String getExtRatDate() {
		return this.extRatDate;
	}

	public void setExtRatDate(String extRatDate) {
		this.extRatDate = extRatDate;
	}

	public String getIndustryRiskLevel() {
		return this.industryRiskLevel;
	}

	public void setIndustryRiskLevel(String industryRiskLevel) {
		this.industryRiskLevel = industryRiskLevel;
	}

	public String getRegionRiskLevel() {
		return this.regionRiskLevel;
	}

	public void setRegionRiskLevel(String regionRiskLevel) {
		this.regionRiskLevel = regionRiskLevel;
	}

	public String getFinancRiskLevel() {
		return this.financRiskLevel;
	}

	public void setFinancRiskLevel(String financRiskLevel) {
		this.financRiskLevel = financRiskLevel;
	}

	public String getCreditLevel() {
		return this.creditLevel;
	}

	public void setCreditLevel(String creditLevel) {
		this.creditLevel = creditLevel;
	}

	public String getFirstCreditLevel() {
		return this.firstCreditLevel;
	}

	public void setFirstCreditLevel(String firstCreditLevel) {
		this.firstCreditLevel = firstCreditLevel;
	}

	public void setDefaultStat(String defaultStat) {
		this.defaultStat = defaultStat;
	}

	public String getDefaultStat() {
		return defaultStat;
	}

	public void setExposureType(String exposureType) {
		this.exposureType = exposureType;
	}

	public String getExposureType() {
		return exposureType;
	}

	public String getInputUserId() {
		return this.inputUserId;
	}

	public void setInputUserId(String inputUserId) {
		this.inputUserId = inputUserId;
	}

	public String getInputOrgId() {
		return this.inputOrgId;
	}

	public void setInputOrgId(String inputOrgId) {
		this.inputOrgId = inputOrgId;
	}

	public String getInputDate() {
		return this.inputDate;
	}

	public void setInputDate(String inputDate) {
		this.inputDate = inputDate;
	}

	public String getUpdateUserId() {
		return this.updateUserId;
	}

	public void setUpdateUserId(String updateUserId) {
		this.updateUserId = updateUserId;
	}

	public String getUpdateOrgId() {
		return this.updateOrgId;
	}

	public void setUpdateOrgId(String updateOrgId) {
		this.updateOrgId = updateOrgId;
	}

	public String getUpdateDate() {
		return this.updateDate;
	}

	public void setUpdateDate(String updateDate) {
		this.updateDate = updateDate;
	}

	public String getIndustryTypeLevelOne() {
		return industryTypeLevelOne;
	}

	public void setIndustryTypeLevelOne(String industryTypeLevelOne) {
		this.industryTypeLevelOne = industryTypeLevelOne;
	}

	public String getIndustryTypeLevelTwo() {
		return industryTypeLevelTwo;
	}

	public void setIndustryTypeLevelTwo(String industryTypeLevelTwo) {
		this.industryTypeLevelTwo = industryTypeLevelTwo;
	}

	public Double getBalance() {
		return balance;
	}

	public void setBalance(Double balance) {
		this.balance = balance;
	}

	public String getDebtCardNo() {
		return debtCardNo;
	}

	public void setDebtCardNo(String debtCardNo) {
		this.debtCardNo = debtCardNo;
	}

	public String getDebtCardPwd() {
		return debtCardPwd;
	}

	public void setDebtCardPwd(String debtCardPwd) {
		this.debtCardPwd = debtCardPwd;
	}

	public String getRegisterDate() {
		return registerDate;
	}

	public void setRegisterDate(String registerDate) {
		this.registerDate = registerDate;
	}

	public String getRelationshipDate() {
		return relationshipDate;
	}

	public void setRelationshipDate(String relationshipDate) {
		this.relationshipDate = relationshipDate;
	}

	public String getTwoHighFlag() {
		return twoHighFlag;
	}

	public void setTwoHighFlag(String twoHighFlag) {
		this.twoHighFlag = twoHighFlag;
	}

	public String getLimitedFlag() {
		return limitedFlag;
	}

	public void setLimitedFlag(String limitedFlag) {
		this.limitedFlag = limitedFlag;
	}

	public String getConfirmedSmallFlag() {
		return confirmedSmallFlag;
	}

	public void setConfirmedSmallFlag(String confirmedSmallFlag) {
		this.confirmedSmallFlag = confirmedSmallFlag;
	}

	public String getNationalTaxNo() {
		return nationalTaxNo;
	}

	public void setNationalTaxNo(String nationalTaxNo) {
		this.nationalTaxNo = nationalTaxNo;
	}

	public String getLocalTaxNo() {
		return localTaxNo;
	}

	public void setLocalTaxNo(String localTaxNo) {
		this.localTaxNo = localTaxNo;
	}

	public String getLicenceBusiScope() {
		return licenceBusiScope;
	}

	public void setLicenceBusiScope(String licenceBusiScope) {
		this.licenceBusiScope = licenceBusiScope;
	}

	public String getOperationYears() {
		return operationYears;
	}

	public void setOperationYears(String operationYears) {
		this.operationYears = operationYears;
	}

	public Double getMainBusiIncome() {
		return mainBusiIncome;
	}

	public void setMainBusiIncome(Double mainBusiIncome) {
		this.mainBusiIncome = mainBusiIncome;
		
		DecimalFormat df = new DecimalFormat("###,##0.00");
		String itemValueString = null ;
		if(mainBusiIncome!=null){
			itemValueString = String.valueOf(df.format(mainBusiIncome));
		}
		this.mainBusiIncomeString =itemValueString;
	}

	public Integer getPeopleNum() {
		return peopleNum;
	}

	public void setPeopleNum(Integer peopleNum) {
		this.peopleNum = peopleNum;
	}

	public Double getOwnersEquity() {
		return ownersEquity;
	}

	public void setOwnersEquity(Double ownersEquity) {
		this.ownersEquity = ownersEquity;
		
		DecimalFormat df = new DecimalFormat("###,##0.00");
		String itemValueString = null ;
		if(ownersEquity!=null){
			itemValueString = String.valueOf(df.format(ownersEquity));
		}
		this.ownersEquityString =itemValueString;
	}

	public Double getDebtPercent() {
		return debtPercent;
	}

	public void setDebtPercent(Double debtPercent) {
		this.debtPercent = debtPercent;
	}

	public String getInOutFlag() {
		return inOutFlag;
	}

	public void setInOutFlag(String inOutFlag) {
		this.inOutFlag = inOutFlag;
	}

	public String getGroupFlag() {
		return groupFlag;
	}

	public void setGroupFlag(String groupFlag) {
		this.groupFlag = groupFlag;
	}

	public String getBdcreditLevel() {
		return bdcreditLevel;
	}

	public void setBdcreditLevel(String bdcreditLevel) {
		this.bdcreditLevel = bdcreditLevel;
	}

	public String getBdcreditDate() {
		return bdcreditDate;
	}

	public void setBdcreditDate(String bdcreditDate) {
		this.bdcreditDate = bdcreditDate;
	}

	public String getCountryCode() {
		return countryCode;
	}

	public void setCountryCode(String countryCode) {
		this.countryCode = countryCode;
	}

	public String getProvinceCode() {
		return provinceCode;
	}

	public void setProvinceCode(String provinceCode) {
		this.provinceCode = provinceCode;
	}

	public String getCityCode() {
		return cityCode;
	}

	public void setCityCode(String cityCode) {
		this.cityCode = cityCode;
	}

	public String getConfirmPdlevel() {
		return confirmPdlevel;
	}

	public void setConfirmPdlevel(String confirmPdlevel) {
		this.confirmPdlevel = confirmPdlevel;
	}

	public String getConfirmDate() {
		return confirmDate;
	}

	public void setConfirmDate(String confirmDate) {
		this.confirmDate = confirmDate;
	}

	public String getRelatedTransaction() {
		return relatedTransaction;
	}

	public void setRelatedTransaction(String relatedTransaction) {
		this.relatedTransaction = relatedTransaction;
	}

	public String getInputUserName() {
		return inputUserName;
	}

	public void setInputUserName(String inputUserName) {
		this.inputUserName = inputUserName;
	}

	public String getInputOrgName() {
		return inputOrgName;
	}

	public void setInputOrgName(String inputOrgName) {
		this.inputOrgName = inputOrgName;
	}


	public String getCustNo() {
		return custNo;
	}

	public void setCustNo(String custNo) {
		this.custNo = custNo;
	}

	public String getRegistercapitalString() {
		return registercapitalString;
	}

	public void setRegistercapitalString(String registercapitalString) {
		this.registercapitalString = registercapitalString;
		
		if(registercapitalString != null)
			this.registercapital = Double.valueOf(registercapitalString);
	}

	public String getAssetSumString() {
		return assetSumString;
	}

	public void setAssetSumString(String assetSumString) {
		this.assetSumString = assetSumString;
		
		if(assetSumString != null)
			this.assetSum = Double.valueOf(assetSumString);
	}

	public String getDebtSumString() {
		return debtSumString;
	}

	public void setDebtSumString(String debtSumString) {
		this.debtSumString = debtSumString;
		
		if(debtSumString != null)
			this.debtSum = Double.valueOf(debtSumString);
	}
	
	
	public String getMainBusiIncomeString() {
		return mainBusiIncomeString;
	}

	public void setMainBusiIncomeString(String mainBusiIncomeString) {
		this.mainBusiIncomeString = mainBusiIncomeString;
		
		if(mainBusiIncomeString != null)
			this.mainBusiIncome = Double.valueOf(mainBusiIncomeString);
	}

	public String getOwnersEquityString() {
		return ownersEquityString;
	}

	public void setOwnersEquityString(String ownersEquityString) {
		this.ownersEquityString = ownersEquityString;
		
		if(ownersEquityString != null)
			this.ownersEquity = Double.valueOf(ownersEquityString);
	}

	public String getPhaseStat() {
		return phaseStat;
	}

	public void setPhaseStat(String phaseStat) {
		this.phaseStat = phaseStat;
	}

	public String getPublicFlag() {
		return publicFlag;
	}

	public void setPublicFlag(String publicFlag) {
		this.publicFlag = publicFlag;
	}
	
	
}